﻿using System;

namespace AutoCommunication.Enums
{
    /// <summary>
    /// 报警类型:可以组合,但是不能有错误的组合,比如又是上升沿,又是下降沿;比如沿报警和条件报警同时纯在
    /// </summary>
    [Flags]
    public enum AlarmType
    {
        /// <summary>
        /// 不开启报警功能
        /// </summary>
        None = 1,

        /// <summary>
        /// 上升沿报警
        /// </summary>
        RisingEdge = 2,

        /// <summary>
        /// 下降沿报警
        /// </summary>
        FallingEdge = 4,

        /// <summary>
        /// 高报警
        /// </summary>
        HAlarm = 8,

        /// <summary>
        /// 高高报警
        /// </summary>
        HHAlarm = 16,

        /// <summary>
        /// 低报警
        /// </summary>
        LAlarm = 32,

        /// <summary>
        /// 低低报警
        /// </summary>
        LLAlarm = 64,
    }
}